package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 审批流程
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("approval_process")
@ApiModel(value="ApprovalProcess对象", description="审批流程")
public class ApprovalProcess extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "流程名称")
    @TableField("process_name")
    private String processName;

    @ApiModelProperty(value = "流程分类")
    @TableField("process_type")
    private Integer processType;

    @ApiModelProperty(value = "流程排序")
    @TableField("process_sort")
    private Integer processSort;

    @ApiModelProperty(value = "审批人类型")
    @TableField("approval_type")
    private Integer approvalType;

    @ApiModelProperty(value = "审批方式")
    @TableField("approval_mode")
    private Integer approvalMode;

    @ApiModelProperty(value = "审批人id")
    @TableField("approval_user_id")
    private String approvalUserId;

    @ApiModelProperty(value = "审批人姓名")
    @TableField("approval_user_name")
    private String approvalUserName;

    @ApiModelProperty(value = "职务")
    @TableField("duty")
    private String duty;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "公司名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private Date createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private Date updateDate;

    @ApiModelProperty(value = "状态(0:正常 1:删除 2:停用)")
    @TableField("status")
    private Integer status;


}
